package com.ibeeking.gmc.global.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName TenantUserParam
 * @Description 租户用户入参
 * @Author ibeeking
 * @Date 2020-11-18 9:48
 **/
@Data
public class TenantUserParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "Id不能为空", groups = {BaseValidationGroup.Update.class})
    private Long id;

    private Integer tenantId;

    /**
     * 用户编码
     */
    //@NotBlank(message = "用户编码不能为空", groups = {BaseValidationGroup.Insert.class})
    private String userCode;

    /**
     * 用户姓名
     */
    @NotBlank(message = "用户姓名不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private String name;

    /**
     * 用户头像
     */
    private String image;

    /**
     * 手机
     */
    @NotBlank(message = "手机号不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private String mobile;

    /**
     * 电话
     */
    private String tel;

    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private String email;

    /**
     * 性别
     */
    @NotNull(message = "性别不能为空")
    private Integer sex;

    @NotBlank(message = "账号有效开始日期不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private String validityStartDate;
    @NotBlank(message = "账号有效结束日期不能为空", groups = {BaseValidationGroup.Insert.class, BaseValidationGroup.Update.class})
    private String validityEndDate;

    private Long createBy;

    private Long modifyBy;
}
